package com.zzty.txj.controller;

import com.zzty.txj.entity.SelfExamTransaction;
import com.zzty.txj.service.SelfExamTransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/selfExamTransaction")
public class SelfExamTransactionController {
    @Autowired
    SelfExamTransactionService selfExamTransactionServiceImpl;


    @ResponseBody
    @RequestMapping(value="/insert",method=RequestMethod.POST)
    public Integer insert(SelfExamTransaction selfExamTransaction) {

        Integer count=selfExamTransactionServiceImpl.insert(selfExamTransaction);
        System.out.println("count         "+count);

        return count;

    }


}
